package com.lkx.farmershop.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lkx.farmershop.common.api.ApiResult;
import com.lkx.farmershop.model.dto.ChatDto;
import com.lkx.farmershop.model.dto.PrivateChatDto;
import com.lkx.farmershop.model.entity.Chat;
import com.lkx.farmershop.model.vo.ChatVo;
import com.lkx.farmershop.model.vo.PrivateChatVo;
import com.lkx.farmershop.model.vo.SimpleChatVo;

import java.util.List;

/**
 * (Chat)表服务接口
 *
 * @author makejava
 * @since 2025-02-12 15:30:20
 */
public interface ChatService extends IService<Chat> {

    ApiResult<String> sendMessage(ChatDto chatDto);

    ApiResult<List<ChatVo>> getChatList(Long tuanId);

    ApiResult<String> sendPrivateMessage(PrivateChatDto chatDto);

    ApiResult<List<ChatVo>> getPrivateChat(Long userId, Long theUserId);

    ApiResult<List<SimpleChatVo>> getAllChat(Long userId);

    ApiResult<List<PrivateChatVo>> getAllPrivateChat(Long userId);
}

